﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="info_detail.aspx.cs" Inherits="admin_infomation_info_detail" validaterequest="false"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>    
	<head>
		<title>
			文章信息
		</title>
		<link href="../css/default.css" rel="stylesheet" type="text/css" />
		<script src="../js/jUtility.js" type="text/javascript"></script>
		<script type="text/javascript" src="../common/calendar.js"></script>
		<script type="text/javascript" src="../../fckeditor/fckeditor.js"></script>
		<script type="text/javascript">
				window.onload = function(){
				    if(document.getElementById("content")){
					    var fck = new FCKeditor('content');
					    fck.BasePath="../../fckeditor/";
    					
					    fck.Width="90%";
					    fck.Height="400px"
					    fck.ReplaceTextarea();
					}
					
				}
		</script>
	</head>

	<body>
		<table width="100%" height="500" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">

			<tr>
				<td height="414" align="left" valign="top" class="rightbg">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td height="2" bgcolor="#A49B81"></td>
									</tr>
									<tr>
										<td height="25" background="../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav" style="background-repeat:repeat-y; background-position:left; padding-left:6px; padding-top:3px;">
											<asp:Label ID="headers" runat="server" />
										</td>
									</tr>
									<tr>
										<td height="1" bgcolor="#B0C9E8"></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td height="16"></td>
						</tr>
						<tr>
							<td height="16"></td>
						</tr>
						<tr>
							<td align="left" valign="top" style="padding-left:10px;">
								<form id="form1" method="post" runat="server">
								<asp:HiddenField ID="state" runat="server" />
								<asp:HiddenField ID="aid" runat="server" />
								<asp:HiddenField ID="isstaticpub" runat="server" />
									<table width="95%" height="728" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#2583BC" bordercolordark="#ffffff">

										<tr>
											<td width="100%" height="641" valign="top">
												<table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<th align="left" width="80%">
															<asp:Label ID="infoname" runat="server"></asp:Label>
														</th>
														<th align="left">
															<a href="info_list.aspx?layerid=<%=Layerid %>&columnid=<%=Request.Params["columnid"]%>">
																返回
															</a>
														</th>
													</tr>
												</table>
												<br>
												<table width="100%" border="0">
													<tr>
														<td width="13%" align="right">
															<font color="#FF0000">
																*
															</font>
															标题：
														</td>
														<td width="2%">&nbsp;
															
														</td>
														<td width="75%">
															<asp:TextBox ID="title" runat="server" MaxLength="100" size="50" />
														</td>
													</tr>
													
													<tr>
														<td width="13%" align="right">
															
															作者：
														</td>
														<td width="2%">&nbsp;
															
														</td>
														<td width="75%">
														
														    <asp:DropDownList ID="expertlist" runat="server" AutoPostBack="true"
                                                                onselectedindexchanged="expertlist_SelectedIndexChanged" >
														        <asp:ListItem Text="请选择" Value="" />
														    </asp:DropDownList>
															<asp:TextBox ID="author" runat="server" MaxLength="50" size="50" />
															<asp:HiddenField ID="expertid" runat="server" />
														</td>
													</tr>
													
													<tr>
														<td align="right" width="13%">
															<font color="#FF0000">
																*
															</font>
															内容模版：
														</td>
														<td width="2%">&nbsp;
														</td>
														<td width="75%">
														<asp:DropDownList runat="server" ID="templateId">
														    <asp:ListItem Text="请选择" Value="0" />
														</asp:DropDownList>
														</td>
													</tr>
												    <tr>
														<td width="13%" align="right">
															
															内容类型：
														</td>
														<td width="2%">&nbsp;
															
														</td>
														<td width="75%">
															<asp:RadioButtonList RepeatDirection="Horizontal" RepeatLayout="Flow" AutoPostBack="true"
                                                                ID="articletype" runat="server" 
                                                                onselectedindexchanged="articletype_SelectedIndexChanged"  >
															<asp:ListItem Text="文章" Value="1" Selected="True" />
															<asp:ListItem Text="链接" Value="2" />
															<asp:ListItem Text="下载文件" Value="3" />
															</asp:RadioButtonList>
														</td>
													</tr>
													
																																							
												</table>
												
													
												<table width="100%" border="0" id="link" visible="false" runat="server" >
													<tr>
														<td align="right" width="13%">
															<font color="#FF0000">
																*
															</font>
															链接地址：

														</td>
														<td width="2%">&nbsp;
															
														</td>
														<td width="75%">
														    <asp:TextBox ID="linkpath" size="50" MaxLength="100" runat="server" Text="http://" />
															
														</td>
													</tr>
												</table>								
												<table width="100%" border="0" id="down" visible="false" runat="server">
													<tr>
														<td align="right" width="13%">
															<font color="#FF0000">
																*
															</font>
															文件上传：

														</td>
														<td width="2%">&nbsp;
															
														</td>
														<td width="75%">
														    <asp:HiddenField ID="filedown" runat="server" />
															
															<iframe name="fu" id="fu" frameborder=0 width=100% height=25 scrolling=no src="../common/upload.aspx?fildname=filedown&type=file"></iframe>
														</td>
													</tr>
												</table>
													
												
												<table width="100%" border="0" id="con" runat="server" visible="true">
												
													<tr>
														<td width="13%" align="right">
															
															来源：
														</td>
														<td width="2%">&nbsp;
															
														</td>
														<td width="75%">
															<asp:TextBox ID="source" runat="server" MaxLength="255" size="50" />
														</td>
													</tr>
													<tr>
														<td width="13%" align="right">
															
															来源链接：
														</td>
														<td width="2%">&nbsp;
															
														</td>
														<td width="75%">
															<asp:TextBox ID="sourceurl" runat="server" MaxLength="255" size="50" />
														</td>
													</tr>
													<tr>
														<td align="right" valign="top">
															简介：
														</td>
														<td>&nbsp;
															
														</td>
														<td>
														    <asp:TextBox ID="summary" TextMode="MultiLine" Rows="7" Columns="50" runat="server" />
															
														</td>
													</tr>  
													<tr>
														<td align="right" width="13%">
															<font color="#FF0000">
																*
															</font>
															内容：
														</td>
														<td width="2%">&nbsp;
															
														</td>
														<td width="75%">
															<asp:TextBox ID="content" TextMode="MultiLine" Rows="7" Columns="50" runat="server" />
														</td>
													</tr>
													
													<tr runat="server" visible="false" id="titleimgtr">
														<td align="right">
															<font color="#FF0000">
																
															</font>
															题头图：
															<asp:HiddenField ID="titleImg" runat="server" />
														</td>
														<td>&nbsp;
															
														</td>
														<td>
															<iframe name="ad" frameborder=0 width=100% height=25 scrolling=no src="../common/upload.aspx?fildname=titleImg"></iframe>
														</td>
													</tr> 
													<tr id="contag" runat="server" visible="false">
														<td width="13%" align="right">
															
															标签：
														</td>
														<td width="2%">&nbsp;
															
														</td>
														<td width="75%">
														    <a name="tagpos"></a>
														    <asp:HiddenField ID="tag" runat="server" />
															<asp:TextBox ID="tagname" runat="server" MaxLength="200" size="50" />
															<input type="button" value="选择" onClick="javascript:winOpen('label_select.aspx?tag='+document.getElementById('tag').value,'templet','500','330')" />
															<asp:Button Text="获取" runat="server" OnClick="autotag_onclick" ID="tag_auto_btn" />
														</td>
													</tr>
													
												</table>
												<table width="100%" border="0">
													<tr>
														<td align="right" width="13%">
															首页置顶：
														</td>
														<td width="2%">&nbsp;
															
														</td>
														<td width="75%">
															<asp:RadioButtonList runat="server" ID="indextop" RepeatDirection="Horizontal" RepeatLayout="Flow">
															    <asp:ListItem Text="否" Value="0" Selected="True"/>
															    <asp:ListItem Text="是" Value="1" />
															</asp:RadioButtonList>
															
														</td>
													</tr>
													
													<tr>
														<td align="right">
															栏目置顶：
														</td>
														<td>&nbsp;
															
														</td>
														<td>
															<asp:RadioButtonList runat="server" ID="sorttop" RepeatDirection="Horizontal" RepeatLayout="Flow">
															    <asp:ListItem Text="否" Value="0" Selected="True" />
															    <asp:ListItem Text="是" Value="1" />
															</asp:RadioButtonList>
														</td>
													</tr>
													
													<tr>
														<td align="right">
															
														</td>
														<td>&nbsp;
															
														</td>
														<td>
															
														</td>
													</tr>  
													
													
												</table>											
												
												<table width="100%" border="0">
													<tr>
														<td height="54" colspan="3" align="center">
														    <asp:Button Text="保存为草稿" ID="sub1" OnClientClick="return subfunc(4)" runat="server" OnClick="Sub_click" />
															<asp:Button Text="保存为正稿" ID="sub2" OnClientClick="return subfunc(0)" runat="server" OnClick="Sub_click"/>
															<asp:Button Text="审核通过" ID="sub5" OnClientClick="return subfunc(2)" runat="server" OnClick="Audi_click"/>
															<asp:Button Text="审核未通过" ID="sub4" OnClientClick="return subfunc(3)" runat="server" OnClick="Audi_click"/>
															<asp:Button Text="保存并发布" ID="sub3" OnClientClick="return subfunc(1)" runat="server" OnClick="Sub_click"/>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</form>
							</td>
						</tr>
						<tr>
							<td>&nbsp;
								
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		
		<iframe id=wait2 name="wait2" style="display:none" width=100% height=100% src="../images/wait.gif" FRAMEBORDER='0' align='middle' bgcolor='#FFFFFF'></iframe>
		<script type="text/javascript"> 

		var o;
		
		function subfunc(flag) {
			if(!isFilled(form1.title)){
				return warning('title','标题不能为空!');
			}
			
			
			if(form1.templateId.value == "0"){
				alert("请选择模板!");
				form1.templateId.focus();
				return false;
			}
			
			
			form1.state.value = flag;
			
			return true;	
		}
		function warning(FieldName,WarningString){
				alert(WarningString);
				eval("form1." + FieldName + ".focus();");
				return(false);
		}
		function stag(){
		    
		    return true;
		}

		</script>

	</body>
</html>
